package com.shujia.oop.two;

/*
属性：用户名（userName）、密码（password）
方法：登录-login(String userName, String password)、登出-logout()
 */
public class AdministratorTest {

    public static void main(String[] args) {
        Administrator administrator = new Administrator();
        boolean flag = administrator.login();
        System.out.println(flag);

        administrator.userName = "admin";
        administrator.password = "admin";
//        flag = administrator.login();
        Administrator administrator1 = new Administrator();
        flag = administrator1.login(); // true ? false
        System.out.println(flag);

        System.out.println(administrator.userName);
        System.out.println(administrator.password);


    }

}
